const express = require('express');
const registerInfo = require('../db/model/register_info');

const router = express.Router();

/*
  查询所有：http://localhost:3000/emp/all
*/
router.get('/all',(req, res) => {
  registerInfo.findAll({
        raw: false //不显示时间戳列
    }).then((results)=>{
        res.send(results);
    })
})
module.exports = router;
